@extends('admin.layouts.app')
@section('css')
	<link href="{{asset('assets/plugins/select2/css/select2.min.css')}}" rel="stylesheet" type="text/css" />
 <link href="{{asset('assets/plugins/bootstrap-daterangepicker/daterangepicker.css')}}" rel="stylesheet">
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                                

								<h4 class="page-title">Responsive Table</h4>
								<ol class="breadcrumb">
									<li>
										<a href="#">Ubold</a>
									</li>
									<li>
										<a href="#">Tables</a>
									</li>
									<li class="active">
										Responsive Table
									</li>
								</ol>
							</div>
						</div>
						

					
	<div class="row">                      				
        	
			
		<div class="card-box">
		
        </div>    
        
		
	
	
					
    

                          
	<div class="col-lg-12">
								
	
        <div class="portlet">
            <div class="portlet-heading bg-{{$data->status_style}}" style="padding: 5px 10px;">
                <span class="portlet-title">
                    <span>订单编号：{{$data->code}}</span> 
                </span>
                <div class="portlet-widgets">
                	
                	<span>创建时间：{{$data->created_at}}</span>
                	

                </div>
                                      
                <div class="clearfix"></div>
            </div>
                <div  class="panel-collapse collapse in">
                    <div class="portlet-body" style="padding: 5px;">
                        <div class="table-responsive" >
				<table  class="table">

					<tbody>
						
                    @foreach($data->products as $op)   
						<tr>
							<td><img src="{{$op->product->thumb}}" width="60" class="img-rounded" /></td>
							<td>{{$op->product_name}}</td>			
							<td>{{$op->price}}</td>		
							<td>￥ {{$op->product_price}} X{{$op->product_num}}</td>
							<td>￥ {{$op->total_price}}</td>
						</tr>
						
					@endforeach
					<tr>
							<td colspan="2">共{{$data->products->count()}}件商品 合计：￥{{$data->total_money}}元
							</td>
							<td colspan="2">
								用车人：{{$data->truename}}，
								地址：{{$data->address}} ，电话：{{$data->mobile}}，用车时间：{{$data->use_date}}
							</td>
							<td>
							<span class="label label-warning"> {{$data->shop_status}}
							</span>
						</td>
					</tr>
					<tr>
						<td colspan="5">
							<div class="row">
			                        	<div class="col-md-6">
                                  <form class="form-horizontal" role="form" action="{{url('zadmin/order/confirm/'.$data->id)}}" method="post">
                            <div class="form-group">
                                                  <label class="col-md-2 control-label">当前状态</label>
                                                  <div class="col-md-10">
                                                  	<span class="label label-warning"> 
                                                      {{$data->shop_status}}
                                                  </span>
                                                  </div>
                            </div>      	
							<div class="form-group">
                                                  <label class="col-md-2 control-label">定金</label>
                                                  <div class="col-md-10">
                                                      <input type="text" class="form-control" name="pre_money" required="" value="{{$data->pre_money}}" >
                                                  </div>
                            </div>
                   
					<div class="form-group">
						<div class="col-md-10">
						<button class="btn btn-success">保存</button>
						</div>
					</div>
					{{csrf_field()}}
				</form>
			</div>
		</div>
						</td>
						
					</tr>
                    </tbody>
				</table>
										

									</div>
                                        </div>
                                    </div>
                                </div>
                            						
		 						
			

								
							</div>
							 
							 
						</div>
						<!-- end row -->
 @endsection 
               
         

    @section('js')
        
   
    @endsection    

